<div class='center_form'>
    <div class="center_form_right">
        <div class='center_form_btn_div' onclick='javascript:Common.submit();'>
            <div class='center_form_btn_pic'>
                <img src='<?php echo HttpUtil::baseUrl();?>/images/save.gif'/>
            </div><div class='center_form_btn_text'><?php echo $this->translate("saveBtn"); ?></div>
        </div>
        <div class='center_form_btn_div' onclick='javascript:Common.gotoUrl("<?php echo HttpUtil::baseUrl();?>/metadata/metadata");'>
            <div class='center_form_btn_pic'>
                <img src='<?php echo HttpUtil::baseUrl();?>/images/cancel.gif'/>
            </div><div class='center_form_btn_text'><?php echo $this->translate("cancelBtn"); ?></div>
        </div>
    </div>
</div>
<div class="clear"></div>
<div class="centerbig_form">
      <input type="hidden" value="<?php echo $this->translate("defaultValueLabel"); ?>" id="defaultValueLabel" />
      <input type="hidden" value="<?php echo $this->translate("remove"); ?>" id="removeBtn" />
      <div class="center_top"><span class="center_top_title"><?php echo $this->translate("addMetadata"); ?></span></div>
      <div class="right_form_content">
            <div class="centerbig_right">
               <div class="form_content">
                    <form action="<?php echo $this->form->getAction(); ?>" method="post">
                        <?php ZendFormUtil::renderElement($this->form->code,array("style"=>"width:150px")); ?>
                        <?php ZendFormUtil::renderElement($this->form->title,array("style"=>"width:150px")); ?>
                        <?php ZendFormUtil::renderElement($this->form->longTitle,array("style"=>"width:150px")); ?>
                        <?php ZendFormUtil::renderElement($this->form->sortOrder,array("style"=>"width:150px")); ?>
                        <?php ZendFormUtil::renderElement($this->form->inputType,array("style"=>"width:150px")); ?>
                        <div id="defaultValueDiv">
                            <div class="form_line_div">
                                <div class="form_element_label" style="width:150px;"><?php echo $this->translate("defaultValueLabel"); ?></div>
                                <div class="form_element">
                                  <input type='text' name='defaultValue' />
                                </div>
                            </div>
                            <div class="clear"></div>
                        </div>
                        <?php ZendFormUtil::renderElement($this->form->valueRequired,array("style"=>"width:150px")); ?>
                        <?php ZendFormUtil::renderElement($this->form->inBasicSearch,array("style"=>"width:150px")); ?>
                        <?php ZendFormUtil::renderElement($this->form->inAdvanceSearch,array("style"=>"width:150px")); ?>
                        <?php ZendFormUtil::renderElement($this->form->showInProduct,array("style"=>"width:150px")); ?>
                        <div id="metadataOptionDiv" style="display:none;">
                            <div class="form_line_div">
                                  <div class="form_element_label" style="width:150px;">
                                        <?php echo $this->translate("metadataOptionMsg"); ?>
                                  </div>
                                  <div class="form_element">
                                        <input type="hidden" value="0" id="optionCount" />
                                        <table class="form_element_table" cellspacing="0" cellpadding="0" style="margin-top: 5px; margin-left: 2px;margin-bottom: 25px;">
                                            <thead>
                                                <tr>
                                                    <td class="dbgrid_th2">
                                                        <span><?php echo $this->translate("optionValue"); ?></span>
                                                    </td>
                                                    <td class="dbgrid_th2">
                                                        <span><?php echo $this->translate("optionTitle"); ?></span>
                                                    </td>
                                                    <td class="dbgrid_th2">
                                                        <span><?php echo $this->translate("optionOrder"); ?></span>
                                                    </td>
                                                    <td class="dbgrid_th2">
                                                        <input type="button" value="<?php echo $this->translate("addNewOption"); ?>" onclick="javascript:Metadata.addOption();" />
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody id="metadataOptionBody">
                                                
                                            </tbody>
                                        </table>
                                  </div>
                            </div>
                        </div>
                    </form>
               </div>
            </div>
      </div>
      <div class='clear'></div>
</div>
<div class='clear'></div>